
package com.ruoyi.client.pojo.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 添加购物项
 */
@Data
public class CartAddForm {
    @ApiModelProperty(value = "商品id", required = true, position = 1)
    @NotNull(message = "商品id不能为空")
    private Long goodsId;

    @ApiModelProperty(value = "商品数量", required = true, position = 2)
    @NotNull(message = "商品数量不能为空")
    private Long count;
}
